package com.bcmusic.distri.pojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.lang.String;
import java.lang.Integer;
/****
 * @Author:admin
 * @Description:DistributeConstract构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "DistributeConstract",value = "DistributeConstract")
@Table(name="distribute_constract")
public class DistributeConstract implements Serializable{

	@ApiModelProperty(value = "音乐分发合约id",required = false)
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "constract_id")
	private Integer constractId;//音乐分发合约id

	@ApiModelProperty(value = "分发商编号。关联distributor表的distributor_number字段。",required = false)
	@Column(name = "distributor_number")
	private String distributorNumber;//分发商编号。关联distributor表的distributor_number字段。

	@ApiModelProperty(value = "对应music_distribution 表的id",required = false)
	@Column(name = "authorization_permission_id")
	private Integer authorizationPermissionId;//对应music_distribution 表的id

	@ApiModelProperty(value = "",required = false)
	@Column(name = "transfer_permission_id")
	private Integer transferPermissionId;//

	@ApiModelProperty(value = "分发商MB分配比（=分发商自持MB分配比+终端用户MB分配比）。与管理员设定的MB交易手续分配比一致，从whole_asset表获得。比例值均乘以100保存。",required = false)
	@Column(name = "distributor_ratio")
	private Integer distributorRatio;//分发商MB分配比（=分发商自持MB分配比+终端用户MB分配比）。与管理员设定的MB交易手续分配比一致，从whole_asset表获得。比例值均乘以100保存。

	@ApiModelProperty(value = "分发商自持MB分配比。由签约的分发商自行设定。",required = false)
	@Column(name = "distributor_own_ratio")
	private Integer distributorOwnRatio;//分发商自持MB分配比。由签约的分发商自行设定。

	@ApiModelProperty(value = "终端用户MB分配比。",required = false)
	@Column(name = "end_user_ratio")
	private Integer endUserRatio;//终端用户MB分配比。

	@ApiModelProperty(value = "签约时间。即合约生成时间。",required = false)
	@Column(name = "create_time")
	private Date createTime;//签约时间。即合约生成时间。

	@ApiModelProperty(value = "1为有效，0为无效",required = false)
	@Column(name = "valid_status")
	private Integer validStatus;//1为有效，0为无效

	@ApiModelProperty(value = "是否开启分发，1表示开启，0表示不",required = false)
	@Column(name = "open_status")
	private String openStatus;//是否开启分发，1表示开启，0表示不

	@ApiModelProperty(value = "",required = false)
	@Column(name = "update_time")
	private Date updateTime;//



	//get方法
	public Integer getConstractId() {
		return constractId;
	}

	//set方法
	public void setConstractId(Integer constractId) {
		this.constractId = constractId;
	}
	//get方法
	public String getDistributorNumber() {
		return distributorNumber;
	}

	//set方法
	public void setDistributorNumber(String distributorNumber) {
		this.distributorNumber = distributorNumber;
	}
	//get方法
	public Integer getAuthorizationPermissionId() {
		return authorizationPermissionId;
	}

	//set方法
	public void setAuthorizationPermissionId(Integer authorizationPermissionId) {
		this.authorizationPermissionId = authorizationPermissionId;
	}
	//get方法
	public Integer getTransferPermissionId() {
		return transferPermissionId;
	}

	//set方法
	public void setTransferPermissionId(Integer transferPermissionId) {
		this.transferPermissionId = transferPermissionId;
	}
	//get方法
	public Integer getDistributorRatio() {
		return distributorRatio;
	}

	//set方法
	public void setDistributorRatio(Integer distributorRatio) {
		this.distributorRatio = distributorRatio;
	}
	//get方法
	public Integer getDistributorOwnRatio() {
		return distributorOwnRatio;
	}

	//set方法
	public void setDistributorOwnRatio(Integer distributorOwnRatio) {
		this.distributorOwnRatio = distributorOwnRatio;
	}
	//get方法
	public Integer getEndUserRatio() {
		return endUserRatio;
	}

	//set方法
	public void setEndUserRatio(Integer endUserRatio) {
		this.endUserRatio = endUserRatio;
	}
	//get方法
	public Date getCreateTime() {
		return createTime;
	}

	//set方法
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	//get方法
	public Integer getValidStatus() {
		return validStatus;
	}

	//set方法
	public void setValidStatus(Integer validStatus) {
		this.validStatus = validStatus;
	}
	//get方法
	public String getOpenStatus() {
		return openStatus;
	}

	//set方法
	public void setOpenStatus(String openStatus) {
		this.openStatus = openStatus;
	}
	//get方法
	public Date getUpdateTime() {
		return updateTime;
	}

	//set方法
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}


}
